﻿<UserControl x:Class="XWord.GUI.Views.Words.WordExplainsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:cal="http://www.caliburnproject.org"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <BooleanToVisibilityConverter x:Key="BooleanToVisibilityConverter"></BooleanToVisibilityConverter>
    </UserControl.Resources>
    <Grid>
        <!--DataContext="{Binding SelectedWord,Source={cal:Resolve Key=WordExplorer}}"-->
        <ScrollViewer>
        <StackPanel>
            <Button cal:Message.Attach="ShowManageDilog">管理</Button>
        <ItemsControl ItemsSource="{Binding Presenters}">
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                        <ContentControl Visibility="{Binding OnService,Converter={StaticResource BooleanToVisibilityConverter}}"
                                        cal:View.Model="{Binding}" />
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
        </StackPanel>
        </ScrollViewer>
    </Grid>
</UserControl>
